home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
comm2
/
cdmail.lha
/
cdmail.doc
< prev
Wrap
Text File
|
1995-10-08
|
3KB
|
56 lines
CHKDMAIL V1.2
chkdmail uses POP3 to query a pop server and reports how many messages you
have waiting. It then shows the From: and Subject: lines of the messages
5 at a time starting with the most recent message and working its way back
through the list to the oldest so that you see new mail first.
It also allows you to delete selected messages. If you do delete messages,
when the program ends it asks you if you are sure you want the messages
deleted and if you change your mind it will undelete all of them. Note that
individual messages cannot be undeleted with the POP3 protocol and so it is
all or nothing.
By default, the chkdmail program obtains your login name from the environment
variable USER which is set by AmiTCP. But if you have set an environment
variable USERNAME, this will override the use of the USER variable. The name
of your POP host machine must be set in the environment variable POPHOST.
Currently, chkdmail can only be used from the CLI.
There is no timeout mechanism in the program. If it can't connect to the
host the only way to kill it cleanly is to use stopnet to kill AmiTCP
and then use startnet to reconnect to your host.
If the program succeeds in connecting to the host it queries the POP server
to find out how many messages you have waiting. If there are none it prints
out a message to this effect and then exits. If you have mail it will open a
640x200 window and ask you for your password. You must always type this in -
no environment variable shortcuts so that you don't store your password in
the clear on your machine! As you type your password the program reflects
a period for each character you type. You can type the backspace key to
correct an error.
The program first reports the total number of messages waiting and then
for each message it shows the message number highlighted in yellow as
well as the From and Subject: line. The messages are displayed in groups of
5. After the 5th message a line near the bottom of the screen will say
-More- (along with some other options). If there are less than 5 remaining
messages the line will say -END- but the options are the same.
You can:
- type a space to see the next block of up to 5 messages.
- type a Control-C (^C) to exit the program.
- type the letter u to undelete all deleted messages.
- type d to delete one or more messages. The program will ask you to
type a list of message numbers.
This program is written in C but was inspired by Matt White's chkmail Arexx
script which is on Aminet.
Pete hardie@duke.usask.ca